package com.lzx.adx.report.enums;

public enum ElmCovertQttEventTypeEnums {
    //转换类型【2新登，3，收购，4，次日留存，6，拉活UV,7拉活存单，8当日首购】

    register("2","0","新登"),
    firstPurchase("3","2","24饿了吗注册24小时内首购，首笔订单"),
    retain("4","6","次日留存"),
    crruent_buy("8","35","关键行为")
    ;


    private String elmCode;

    private String qqtCode;

    private String msg;


    ElmCovertQttEventTypeEnums(String elmCode, String qqtCode, String msg) {
        this.elmCode = elmCode;
        this.qqtCode = qqtCode;
        this.msg = msg;
    }

    public String getElmCode() {
        return elmCode;
    }

    public String getQqtCode() {
        return qqtCode;
    }

    public String getMsg() {
        return msg;
    }

    public static String getQttCode(String elmCode){
        for (ElmCovertQttEventTypeEnums value : ElmCovertQttEventTypeEnums.values()) {
            if(value.getElmCode().equals(elmCode)){
                return value.getQqtCode();
            }
        }
        return  null;
    }

}
